package mspbots.next.ticket.core.data.rejects;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * com.mspbots.ticket.core.rejects.RejectService
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2020/4/24
 */
public interface RejectService {

    /**
     * Get tenant reject newest entity.
     *
     * @param tenantId tenant id
     * @return reject all data
     */
    Flux<Reject> findNewest(Long tenantId);

    /**
     * Save reject  entity.
     *
     * @param reject Reject entity
     * @return reject all data
     */
    Mono<Reject> save(Reject reject);

}
